import Vue from 'vue'
import App from './App'
import router from './router'
import cookies from 'vue-cookies'
import * as echarts from 'echarts'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css' //element-ui的css
Vue.use(ElementUI);
Vue.prototype.$echarts = echarts
Vue.use(cookies);

//配置字体图标
import "./common/css/style.css";
import "./common/css/reset.css";
Vue.config.productionTip = false

Vue.prototype.$server = "http://localhost:3001"
let Loading = function () {
  this.loading = true
  setTimeout(() => {
    this.loading = false
  }, 600)
}
Vue.prototype.$Loading = Loading
/* eslint-disable no-new */
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')